From: Florian Müllner Date: Tue, 23 May 2017 09:04:28 +0000 (+0200) Subject: lookingGlass: Use standard icon names for GC icon X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~328 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7e7e3ec0169c262d009923015969393c2c1ff32a;p=gnome-shell.git lookingGlass: Use standard icon names for GC icon Commit b929320d4 added a toolbar item to force garbage collection, however it won't be visible for most users, as it uses a non-standard legacy icon name (the default icon theme dropped it as far back as 2009). https://bugzilla.gnome.org/show_bug.cgi?id=782982 --- diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js index c5bf28f59..bb06c1bcd 100644 --- a/js/ui/lookingGlass.js +++ b/js/ui/lookingGlass.js @@ -833,19 +833,19 @@ const LookingGlass = new Lang.Class({ return Clutter.EVENT_STOP; })); - let gcIcon = new St.Icon({ icon_name: 'gnome-fs-trash-full', + let gcIcon = new St.Icon({ icon_name: 'user-trash-full', icon_size: 24 }); toolbar.add_actor(gcIcon); gcIcon.reactive = true; gcIcon.connect('button-press-event', Lang.bind(this, function () { - gcIcon.icon_name = 'gnome-fs-trash-empty'; + gcIcon.icon_name = 'user-trash'; System.gc(); this._timeoutId = Mainloop.timeout_add(500, Lang.bind(this, function () { - gcIcon.icon_name = 'gnome-fs-trash-full'; + gcIcon.icon_name = 'user-trash-full'; this._timeoutId = 0; return GLib.SOURCE_REMOVE; })); - GLib.Source.set_name_by_id(this._timeoutId, '[gnome-shell] gcIcon.icon_name = \'gnome-fs-trash-full\''); + GLib.Source.set_name_by_id(this._timeoutId, '[gnome-shell] gcIcon.icon_name = \'user-trash-full\''); return Clutter.EVENT_PROPAGATE; }));